package com.lovemanai.test;

import org.junit.Test;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

import com.lovemanai.service.Person;

public class Demo1 {

	@Test
	public void test1() {
		
		ApplicationContext ctx = new ClassPathXmlApplicationContext("applicationContext.xml");
		
		Person p = ctx.getBean("chinese", Person.class);
		
		p.useAxe();
		
	}
	
}
